package cn.daniel.framework.dao;

import cn.daniel.framework.entity.IPBlackWhiteListDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author daniel.tuen
 * @date 2025/9/4 14:24
 * @description
 */
@Mapper
public interface IPBlackWhiteListDAO {

    /**
     * 添加ip
     * @param ipBlackWhiteListDO
     * @return
     */
    int addIPAddr(IPBlackWhiteListDO ipBlackWhiteListDO);

    /**
     * 根据主键查询
     * @param id
     * @return
     */
    IPBlackWhiteListDO getIPAddrById(@Param("id") int id);

    List<IPBlackWhiteListDO> getAll();
}
